<#import "/common/spring.ftl" as spring />
<!DOCTYPE html PUBLIC "-//W3C//Dth XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/Dth/xhtml1-transitional.dth">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" href="${base}/admin/css/article.css" />
<title>发布文章</title>
</head>
	<body>
		<form id="addArticleForm" name="addArticleForm" action="${base}/admin/article/add.do" method="post">
	    	<table width="100%" cellpadding="0" cellspacing="0" style="margin:0px auto;">
	        	<tr>
	            	<td width="1%"><img src="${base}/admin/images/left-top-right.gif" /></td>
	                <td width="98%"><h3>当前位置：文章管理&gt; 文章发布 </h3></td>
	                <td width="1%"><img src="${base}/admin/images/nav-right-bg.gif" /></td>
	            </tr>
	            <tr>
	            	<td width="1%" class="left_border_center"> </td>
	                <td width="98%">
	           			<table cellpadding="0">
	                    	<tr class="even">
	                        	<td width="12%" height="35">文章标题：</td>
	                        	<td width="56%" colspan="3" align="left">
	                        		&nbsp;<@spring.formInput "form.subject",'class="inputbox"'/>
	                        		<span class="error"><@spring.error "form.subject"/></span>
	                        	</td>
	                        </tr>
	                       <tr class="even">
	                        	<td>文章概要：</td>
	                            <td colspan="3" align="left">
	                            	&nbsp;<@spring.formTextarea "form.summary",'class="inputbox"' />
	                            	<span class="error"><@spring.error "form.summary"/></span>
	                            </td>
	               		   </tr>
	                       <tr class="even">
								<td>解析概要：</td>
								<td colspan="3" align="left">
									&nbsp;<@spring.formCheckbox "form.parseSummary" />
									<span class="error"><@spring.error "form.parseSummary"/></span>
								</td>
	                       </tr>
	                       <tr class="even">
	                       		<td>作者：</td>
	                            <td colspan="3" align="left">
	                            	&nbsp;<@spring.formInput "form.author",'class="inputbox"' />
	                            	<span class="error"><@spring.error "form.author"/></span>
	                            </td>
	                       </tr>
	                       <tr class="even">
	                       		<td>来源：</td>
	                            <td colspan="3" align="left">
	                         		&nbsp;<@spring.formInput "form.source",'class="inputbox"' />
	                         		<span class="error"><@spring.error "form.source"/></span>
	                            </td>
	                       </tr>
	                       <tr class="even">
	                       		<td>文章内容：</td>
	                            <td colspan="3" align="left">
	                            	&nbsp;<@spring.formTextarea "form.content",'class="htmleditor"' />
	                            	<span class="error"><@spring.error "form.content"/></span>
	                            </td>
	                       </tr>
	                       <tr class="even">
	                         <td>标签：</td>
	                         <td colspan="3" align="left">
	                         	 &nbsp;<@spring.formInput "form.tags",'class="inputbox"' />
								 <span class="error"><@spring.error "form.tags"/></span>
	                         </td>
	                       </tr>
	                       <tr class="even">
	                       		<td colspan="4">
	                       			<input type="submit" value="保存"/>　
	                       			<input type="reset" value="重置"/>
	                       		</td>
	                       </tr>
	                    </table>
					</td>
	                <td width="1%" class="right_border_center"></td>
	            </tr>
	            <tr>
	            	<td width="1%"><img src="${base}/admin/images/buttom_left2.gif" /></td>
	                <td width="98%" class="bottom_bg"> </td>
	                <td width="1%"><img src="${base}/admin/images/buttom_right2.gif" /></td>
	            </tr>
	        </table>
		</form>
		<script charset="utf-8" src="${base}/admin/js/editor/kindeditor.js"></script>
		<script charset="utf-8" src="${base}/admin/js/editor/lang/zh_CN.js"></script>
		<script>
	        KindEditor.ready(function(K) {
    			K.create('#content', {
					uploadJson : '${base}/admin/kindeditor/file-upload.do',
					fileManagerJson : '${base}/admin/kindeditor/file-manager.do',
					allowFileManager : false
				});
			});
		</script>
	</body>
</html>